package com.example.graduationdesignbackend.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yuze
 * @since 2024-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product")
@ApiModel(value="Product对象", description="")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "关联的商户（农户）id")
    private String userId;

    @ApiModelProperty(value = "农产品的名称")
    private String title;

    @ApiModelProperty(value = "农产品的描述")
    private String intro;

    @ApiModelProperty(value = "农产品的图片")
    private String image;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    private String unit;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "状态 0（编辑）9（上架）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    private Long updateTime;


}
